<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>上海泛软科技有限公司-后台登陆</title>
<meta name="robots" content="nofollow" />
<meta name=”viewport” content=”width=device-width, initial-scale=1, maximum-scale=1″>
<link href="__CSS__/admin-login.css" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript" src="__JS__/jquery.js"></script>
<script language="javascript" type="text/javascript" src="__JS__/placeholder.js"></script>
<script language="javascript" type="text/javascript" src="__PLUGIN__/layer/layer.js"></script>
<script language="javascript" type="text/javascript">
$(function(){
	$('input').placeholder({isUseSpan:true});
	var mt = document.documentElement.clientHeight - $('#form').height() - 100 - $('.logo').height() 
	$('.logo').css('marginTop',mt/2)
	$('#user').focus()
})
function check(){
	$.post("<{:U('loginok')}>",{user:$('#user').val(),pwd:$('#pwd').val()},function(data){
		<!-- if(data == "demo"){
		   // location.href = "<{:U('Demo/demo')}>"	
		//} -->
		if(data != 'ok'){
			$.layer({
			  shade: [0.5,'#000'],
			  area: ['300px','auto'],
			  dialog: {
				  msg: data,   
				  type: 8,
			  }
		  });
		} 
		else{
			location.href = "<{:U('Index/index')}>"	
		}
	})
	return false;
}
</script>
</head>

<body>

<div class="logo"></div>
<form id="form" name="form" method="post" action="" onsubmit="return check()">
    <div class="form-group">
    <input type="text" name="user" id="user" placeholder="账号" value="" />
    </div>
    <div class="form-group">
    <input type="password" name="pwd" id="pwd" placeholder="密码" value="" />
    </div> 
    <div class="form-group">
    <input type="submit" name="button" id="button" value="登       录" />
    </div>
</form>


</body>
</html>